package com.rr.mymoney.jsf;

import java.io.Serializable;

import com.rr.mymoney.model.User;
import com.rr.mymoney.security.SecurityUtils;

public abstract class AbstractController implements Serializable {

    private static final long serialVersionUID = 3774687710826361163L;
    private User loggedUser;

    public User getLoggedUser() {
	if (loggedUser == null) {
	    loggedUser = SecurityUtils.getLoggedUser();
	}
	return loggedUser;
    }

}
